package com.gr.mapper;

import com.gr.entity.Book;

import java.util.List;

public interface BookMapper {
    List<Book> selectAllBook();
    List<Book> selectAllBookAndType();
    Book selectBookById(Integer id);
    void insertBook(Book book);
    void deleteBookById(Integer id);
    void deleteBookByTid(Integer tid);
    void updateBook(Book book);
    List<Book> selectBookByTypeId(Integer tid);

}
